package com.ahy231.mapper;

import com.ahy231.dto.UserRoles;
import com.ahy231.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author ahy231
 * @date 2021/7/26 18:51
 * @description
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("SELECT user_id FROM `user` WHERE open_id = #{openId}")
    Long getUserIdByOpenId(String openId);
}
